package com.umgsai.thread.thread01;

public class MyThread3 extends Thread {
	private int count = 5;
	public MyThread3(String name){
		super();
		this.setName(name);
	}
	
	@Override
	public void run() {
		super.run();
		while (count > 0) {
			count--;
			System.out.println("执行者：" + this.currentThread().getName() + ",count=" + count);
		}
	}
	
	public static void main(String[] args) {
		MyThread3 t1 = new MyThread3("A");
		MyThread3 t2 = new MyThread3("B");
		MyThread3 t3 = new MyThread3("C");
		t1.start();
		t2.start();
		t3.start();
	}
}
